import request from '@/utils/request'

// 查询评测分数列表
export function listResult(query) {
  return request({
    url: '/evalution/result/list',
    method: 'get',
    params: query
  })
}

// 查询评测分数详细
export function getResult(evalutionResultId) {
  return request({
    url: '/evalution/result/' + evalutionResultId,
    method: 'get'
  })
}

// 新增评测分数
export function addResult(data) {
  return request({
    url: '/evalution/result',
    method: 'post',
    data: data
  })
}

// 修改评测分数
export function updateResult(data) {
  return request({
    url: '/evalution/result',
    method: 'put',
    data: data
  })
}

// 删除评测分数
export function delResult(evalutionResultId) {
  return request({
    url: '/evalution/result/' + evalutionResultId,
    method: 'delete'
  })
}

// 导出评测分数
export function exportResult(query) {
  return request({
    url: '/evalution/result/export',
    method: 'get',
    params: query
  })
}